<?php
/**
 * Created by PhpStorm.
 * Adminuser: Administrator
 * Date: 2019/2/15 0015
 * Time: 下午 3:54
 */
namespace app\common\validate;
use think\Validate;
class Adminuser extends Validate
{
    //当前的验证规则
    protected $rule=[
        'name|姓名'=>[
            'require'=>'require',
            'length'=>'4,20',
            'chsAlphaNum'=>'chsAlphaNum'
        ],
        'email|邮箱'=>[
            'require'=>'require',
            'email'=>'email',
            'unique'=>'user',
        ],
        'password|密码'=>[
            'require'=>'require',
            'alphaNum'=>'alphaNum',
            'length'=>'6,15'
        ],
        'phone'=>[
            'mobile'=>'mobile',
            'require'=>'require',
            'unique'=>'user',
        ]
    ];
}